package com.health.teahouse.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.health.common.annotation.Excel;
import com.health.common.core.domain.BaseEntity;

/**
 * 饮食建议信息对象 diet_advice
 * 
 * @author yang
 * @date 2024-02-11
 */
public class DietAdvice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 建议ID，自增主键 */
    private Long adviceId;

    /** 关联的用户ID */
    @Excel(name = "关联的用户ID")
    private Long userId;
    private String userName;

    @Override
    public String toString() {
        return "DietAdvice{" +
                "adviceId=" + adviceId +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", adviceDate=" + adviceDate +
                ", adviceDescription='" + adviceDescription + '\'' +
                '}';
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /** 建议日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "建议日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date adviceDate;

    /** 建议描述 */
    @Excel(name = "建议描述")
    private String adviceDescription;

    public void setAdviceId(Long adviceId) 
    {
        this.adviceId = adviceId;
    }

    public Long getAdviceId() 
    {
        return adviceId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAdviceDate(Date adviceDate) 
    {
        this.adviceDate = adviceDate;
    }

    public Date getAdviceDate() 
    {
        return adviceDate;
    }
    public void setAdviceDescription(String adviceDescription) 
    {
        this.adviceDescription = adviceDescription;
    }

    public String getAdviceDescription() 
    {
        return adviceDescription;
    }

}
